<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>学生管理系统</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/sb-admin.css" rel="stylesheet">
    <link href="css/students.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="./layer/theme/default/layerui.css">
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <script src="js/jquery.js"></script>
    <script src="js/templateie/es5-shim.min.js"></script>
    <script src="js/templateie/es5-sham.min.js"></script>
    <script src="js/templateie/json3.min.js"></script>
    <script src="js/template-web.js"></script>

</head>

<body>

<div id="wrapper">
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-money fa-fw"></i> 学生帐号</h3>
                            </div>
                            <button type="button" class="btn btn-lg btn-success add_list add_cur" data_id = "{{res.id}}">添加</button>
                            <div class="panel-body">
                                <div class="table-responsive" id="student">
                                    <script type="text/html" id="studentTpl">
                                        <table class="table table-bordered table-hover table-striped">
                                            <thead>
                                                <tr>
                                                    <th width='20%'>姓名</th>
                                                    <th width='20%'>电话</th>
                                                    <th width='20%'>身份证</th>
                                                    <th width='20%'>状态</th>
                                                    <th width='20%'>操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {{each res.data as item index}}
                                                <tr data_id="{{item.id}}">
                                                    <td width='20%'>{{item.name}}</td>
                                                    <td width='20%'>{{item.phone}}</td>
                                                    <td width='20%'>{{item.id_card}}</td>
                                                    <td width='20%'>{{item.status}}</td>
                                                    <td width='20%'>
                                                        <button type="button" class="btn btn-xs btn-danger status_btn"  data_id="{{item.id}}" data_type = "{{(item.status == '启用') ? '2' : '1'}}">{{(item.status == '启用') ? '禁用' : '启用'}}</button>
                                                        <button type="button" class="btn btn-xs btn-success mod_btn"  data_id="{{item.id}}" >修改密码</button>
                                                        <button type="button" class="btn btn-xs btn-success kait"  data_id="{{item.id}}" >课程开通</button>
                                                    </td>
                                                </tr>
                                                {{/each}}
                                            </tbody>
                                        </table>
                                    </script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <script src="js/bootstrap.min.js"></script>
    <script src="js/header.js"></script>
    <script src="js/commit.js"></script>
    <script src="js/studentlist.js"></script>
    <script src="./layer/layer.js"></script>
</body>

</html>
